{% load i18n satchmo_category satchmo_google satchmo_util satchmo_currency satchmo_discounts app_plugins %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN" dir="EN">

<head>
    {% block extra-head %}{% endblock %}
    <link rel="stylesheet" href="{{ media_url }}zen/css/layout-liquid.css" />
    <link rel="stylesheet" href="{{ media_url }}zen/css/html-elements.css" />
    <link rel="stylesheet" href="{{ media_url }}zen/css/zen.css" />
    <title>{% block title %}{{ shop_name }}{% if pagetitle %}: {{ pagetitle }}{% endif %}{% endblock %}</title>
  <script type="text/javascript"><!--Needed to avoid Flash of Unstyled Content in IE--> </script>
</head>
{% block body %}
<body{% if bodyid %} id="{{ bodyid }}"{% endif %} class="two-sidebars with-navbar {% if bodyclass %} {{ bodyclass }} {% endif %}">

  <div id="page"><div id="page-inner">
    <div id="header"><div id="header-inner" class="clear-block">

        <div id="logo-title">

            <div id="logo"><a href=""><img src="" id="logo-image" /></a></div>

              <h1 id="site-name">
                <a href="" title="" rel="home">
                  <h1>{{ shop_name }}</h1>
                </a>
              </h1>

        </div> <!-- /#logo-title -->

        <div id="header-blocks" class="region region-header">
	    <ul>
	    	{% block navbar %}Breadcrumbs here{% endblock %}
            </ul>
        </div> <!-- /#header-blocks -->


    </div></div> <!-- /#header-inner, /#header -->

    <div id="main"><div id="main-inner" class="clear-block">

      <div id="content"><div id="content-inner">

          <div id="content-top" class="region region-content_top">

          </div> <!-- /#content-top -->

          <div id="content-header">

              <h1 class="title">Content Header</h1>

              <div class="tabs"></div>

          </div> <!-- /#content-header -->


        <div id="content-area">
	    {% block content %}{% endblock %}
        </div>

          <div class="feed-icons">
          </div>


          <div id="content-bottom" class="region region-content_bottom">

          </div> <!-- /#content-bottom -->


      </div></div> <!-- /#content-inner, /#content -->

        <div id="navbar"><div id="navbar-inner" class="region region-navbar">

            <div id="search-box">
			{% satchmo_search_form %}
            </div> <!-- /#search-box -->

            <div id="primary">

            </div> <!-- /#primary -->

            <div id="secondary">

            </div> <!-- /#secondary -->


        </div></div> <!-- /#navbar-inner, /#navbar -->

        <div id="sidebar-left"><div id="sidebar-left-inner" class="region region-left">
		{% block sidebar-secondary %}

		<div>
			{% block sidebar %}
			<h3>{% trans "Shop Categories" %}</h3>
			{% block sidebar-categories %}
			<div id="menu_container">
				{% category_tree %}
			</div>
			{% endblock sidebar-categories %}
			
			{% block sidebar-secondary-bottom %}
			{% plugin_point "sidebar_secondary_bottom" %}
			{% endblock %}
			{% endblock sidebar %}
		</div>
		{% endblock sidebar-secondary %}
        </div></div> <!-- /#sidebar-left-inner, /#sidebar-left -->

        <div id="sidebar-right"><div id="sidebar-right-inner" class="region region-right">
{# rightnav #}
		{% block sidebar-primary %}
		<h3>{% trans "Quick Links" %}</h3>
		{% url satchmo_product_recently_added as recenturl %}
		{% if recenturl %}<a href="{{ recenturl }}">{% trans "Recently Added" %}</a>{% endif %}
		{% url satchmo_product_best_selling as popularurl %}
		{% if popularurl %}<br/><a href="{{ popularurl }}">{% trans "Best Sellers" %}</a>{% endif %}
		{% plugin_point "sidebar_links" %}

	    <h3>{% trans "Account Information" %}</h3>
	    {% if user.is_staff %}
		<a href="/admin" target="blank">{% trans "Admin" %}</a><br/>
		{% endif %}
	    {% if user.is_authenticated %}
		{% url satchmo_account_info as accounturl %}
        {% if accounturl %}<a href="{{ accounturl }}" target="blank">{% trans "Account Details" %}</a><br/>{% endif %}
        <a href="{{ logout_url }}">{% trans "Log out" %}</a><br/>
	    {% else %}
        <a href="{{ login_url }}?next={{request.path}}">{% trans "Log in" %}</a><br/>
	    {% endif %}

		{% url satchmo_cart as carturl %}
	    {% if carturl %}<a href="{{ carturl }}">{% trans "Cart" %}</a>{% endif %}

	    {% if cart_count %}
        ({{ cart_count }}{% if cart.total %} - {{ cart|discount_cart_total:sale|currency }}{% endif %})<br/>
		{% url satchmo_checkout-step1 as checkouturl %}
        {% if checkouturl %}<a href="{{ checkouturl }}">{% trans "Check out" %}</a>{% endif %}
	    {% endif %}
	
		{% plugin_point "shop_sidebar_actions" %}
    
		{% url satchmo_contact as contact_url %}
	    {% if contact_url %}<p><a href="{{ contact_url }}">{% trans "Contact Us" %}</a></p>{% endif %}

		{% satchmo_language_selection_form %}

		{% block sidebar-primary-bottom %}
		{% plugin_point "shop_sidebar_primary" %}
		{% endblock %}
		{% endblock sidebar-primary %}
        </div></div> <!-- /#sidebar-right-inner, /#sidebar-right -->


    </div></div> <!-- /#main-inner, /#main -->


      <div id="footer"><div id="footer-inner" class="region region-footer">

          <div id="footer-message">
          	{% block footer %}
		{% blocktrans %}Powered by <a href="http://www.satchmoproject.com">Satchmo</a>.{% endblocktrans %}
		{% endblock %}
          </div>


      </div></div> <!-- /#footer-inner, /#footer -->


  </div></div> <!-- /#page-inner, /#page -->

    <div id="closure-blocks" class="region region-closure">
	{% block page-close %}
    {% block google-tracker %}
    {% if shop.options.GOOGLE.ANALYTICS.value %}
        {% show_tracker is_secure %}
    {% endif %}
    {% endblock %}
	{% endblock %}
</div>

</body>
{% endblock %}
</html>
